.x-markdown-reader {
  // 代码回显样式
  .copy-btn {
    margin-left: 20px;
    font-style: normal;
  }
  .copy-btn:hover {
    color: var(--main-color);
  }
  .code-left-bar {
    position: absolute;
    top: 8px;
    right: 5px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    color: hsla(0, 0%, 54.9%, 0.8);
    transition: color 0.1s;
  }
  img {
    max-width: 100%;
  }
  pre {
    position: relative;
    max-height: 400px;
    padding-top: 30px;
    border-radius: 5px;
    margin: 10px 0;
    // overflow: auto;
    background-color: var(--main-bgc);
    font-size: 1em;
    &::before {
      position: absolute;
      top: -4px;
      display: block;
      width: 100%;
      height: 30px;
      background-image: url(@/assets/img/icons/code-btn.png);
      background-position: 10px 10px;
      background-size: 55px;
      background-repeat: no-repeat;
      content: '';
    }
  }
  code {
    display: inline-block;
    max-height: 370px;
    border-radius: 3px;
    padding: 3px 5px;
    margin: 0 3px;
    color: var(--text-color);
    background-color: var(--main-bgc);
    margin: 0;
    word-wrap: break-word;
    word-break: break-all;

    @at-root pre {
      overflow: hidden;
    }
  }

  blockquote {
    display: block;
    border-left: 8px solid var(--main-color);
    padding: 5px 10px;
    margin: 10px 0;
    line-height: 1.4;
    font-size: 100%;
    background-color: var(--main-bgc);
  }
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  table,
  pre {
    margin: 10px 0;
    line-height: 1.5;
  }

  a {
    color: #2a6496;
    text-decoration: underline;
  }
}
